package com.qf.dao.shangpin_dao;

import com.qf.bean.Commodity;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface CommDao {
    List<Commodity> show(HashMap map);

    Integer add(Commodity commodity);

    Integer addMid(Map map);

    Commodity findByCommId(Integer commId);

    Integer deleteMid(Integer id);

    Integer update(Commodity commodity);

    List<Commodity> chuxiaoShow(HashMap map);

    Integer addMid2(HashMap map);



    List<Commodity> findByIds(@Param("ids") int[] ids);

    Commodity findByCode(String code);
}
